-- 基础配置
vim.g["airline#extensions#whitespace#enabled"] = 0
vim.g["airline#extensions#tabline#enabled"] = 1
vim.g["airline#extensions#tabline#tab_nr_type"] = 1
vim.g["airline#extensions#tabline#show_tab_nr"] = 1
vim.g["airline#extensions#tabline#formatter"] = "default"
vim.g["airline#extensions#tabline#buffer_nr_show"] = 0
vim.g["airline#extensions#tabline#fnametruncate"] = 16
vim.g["airline#extensions#tabline#fnamecollapse"] = 2
vim.g["airline#extensions#tabline#buffer_idx_mode"] = 1
vim.g["airline#extensions#branch#enabled"] = 1

-- 主题配置
vim.g.airline_powerline_fonts = 1

-- 快捷键选择 buffer
vim.keymap.set("n", "<Leader>1", "<Plug>AirlineSelectTab1")
vim.keymap.set("n", "<Leader>2", "<Plug>AirlineSelectTab2")
vim.keymap.set("n", "<Leader>3", "<Plug>AirlineSelectTab3")
vim.keymap.set("n", "<Leader>4", "<Plug>AirlineSelectTab4")
vim.keymap.set("n", "<Leader>5", "<Plug>AirlineSelectTab5")
vim.keymap.set("n", "<Leader>6", "<Plug>AirlineSelectTab6")
vim.keymap.set("n", "<Leader>7", "<Plug>AirlineSelectTab7")
vim.keymap.set("n", "<Leader>8", "<Plug>AirlineSelectTab8")
vim.keymap.set("n", "<Leader>9", "<Plug>AirlineSelectTab9")

vim.g['airline_symbols_maxlinenr'] = ''

return {}

